import commonjs from 'rollup-plugin-commonjs'
import typescript from 'rollup-plugin-typescript2';
import pkg from './package.json'

export default [
    {
        input: 'src/index.ts',
        plugins: [
            commonjs(),
            typescript({
                clean: true
            })
        ],
        output: [
            { file: pkg.main, format: 'cjs' }
        ]
    },
    {
        input: 'src/cli.ts',
        plugins: [
            commonjs(),
            typescript({
                clean: true
            })
        ],
        output: [
            { file: pkg.cli, format: 'cjs' }
        ]
    }
]